<div class="main-side" id="side">
    <form class="side" id="search">
        <input class="ipt" type="search" required="required" name="q" placeholder="标题关键词"/>
        <input class="btn" type="submit" value="搜索"/>
    </form>
    <div class="side" id="category">
        <h4 class="title">分类列表</h4>
        <ul class="list"><!--foreach($category as $c)-->
            <li><span class="num">{{$c->nodeCount}}</span>
                <a href="/category/{{$c->keyString}}/" title="查看分类 {{$c->name}}">{{$c->name}}</a>
            </li>
            <!--endforeach-->
        </ul>
    </div>
    <div class="side" id="popular">
        <h4 class="title">热评文章</h4>
        <ul class="list"><!--foreach($popular as $p)-->
            <li><span class="num">{{$p->commentCount}}</span>
                <a href="/p/{{$p->nodeKey}}.html" title="{{$p->title}}">{{$p->title}}</a>
            </li>
            <!--endforeach-->
        </ul>
    </div>
    <div class="side" id="new-comments">
        <h4 class="title">最新评论</h4>
        <ul class="list"><!--foreach($newComment as $cmt)-->
            <li><a class="name" href="/p/{{$cmt->nodeKey}}.html#comment-{{$cmt->id}}">{{$cmt->author}}</a>：{{strip_tags($cmt->content)}}</li>
            <!--endforeach-->
        </ul>
    </div>
</div>